class test
{
public static int[] gen(int[] a) {
int [ ] a=new int[num];
for(int i=0;i<num;i++)
a[i]=(int)  ( Math.random()*100);
return a;
}
public static int printarray(int{} arr)
{
for(int i=0;i<arr.length;i++)
System.out.print(arr[i]+" ," );
}
}
}

/*public static void main(String[] args) {
int[] a={1,2,3,4,5,6,7,8,9,10};
System.out.println("sum of array is" + test.Sum_of_Array(a));
 test.printArray(test.generate_rand(10));
 System.out.println(sum of array element is:" + test.Sum_of_Array(test.generate_rand(10)));
 }
 }*/